Integrand size = 22, antiderivative size = 177 \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=-\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {3 e^2 (2 c d-b e) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {752, 793, 635, 212} \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\frac {3 e^2 (2 c d-b e) \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}}+\frac {e \sqrt {a+b x+c x^2} \left (-2 c e (4 a e+3 b d)+3 b^2 e^2+2 c e x (2 c d-b e)+8 c^2 d^2\right )}{c^2 \left (b^2-4 a c\right )}-\frac {2 (d+e x)^2 (-2 a e+x (2 c d-b e)+b d)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}} \]
[In]
[Out]
Rule 212
Rule 635
Rule 752
Rule 793
Rubi steps \begin{align*} \text {integral}& = -\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}-\frac {2 \int \frac {(d+e x) (-2 e (b d-2 a e)-2 e (2 c d-b e) x)}{\sqrt {a+b x+c x^2}} \, dx}{b^2-4 a c} \\ & = -\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {\left (3 e^2 (2 c d-b e)\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 c^2} \\ & = -\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {\left (3 e^2 (2 c d-b e)\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{c^2} \\ & = -\frac {2 (d+e x)^2 (b d-2 a e+(2 c d-b e) x)}{\left (b^2-4 a c\right ) \sqrt {a+b x+c x^2}}+\frac {e \left (8 c^2 d^2+3 b^2 e^2-2 c e (3 b d+4 a e)+2 c e (2 c d-b e) x\right ) \sqrt {a+b x+c x^2}}{c^2 \left (b^2-4 a c\right )}+\frac {3 e^2 (2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 c^{5/2}} \\ \end{align*}
Time = 0.84 (sec) , antiderivative size = 194, normalized size of antiderivative = 1.10 \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\frac {\frac {\sqrt {c} \left (-3 b^3 e^3 x-b^2 e^2 (3 a e+c x (-6 d+e x))+2 b c \left (c d^2 (d-3 e x)+a e^2 (3 d+5 e x)\right )+4 c \left (2 a^2 e^3+c^2 d^3 x+a c e \left (-3 d^2-3 d e x+e^2 x^2\right )\right )\right )}{\sqrt {a+x (b+c x)}}+3 \left (b^2-4 a c\right ) e^2 (-2 c d+b e) \text {arctanh}\left (\frac {\sqrt {c} x}{-\sqrt {a}+\sqrt {a+x (b+c x)}}\right )}{c^{5/2} \left (-b^2+4 a c\right )} \]
[In]
[Out]
Time = 0.41 (sec) , antiderivative size = 307, normalized size of antiderivative = 1.73
method | result | size |
risch | \(\frac {e^{3} \sqrt {c \,x^{2}+b x +a}}{c^{2}}-\frac {\frac {2 a b \,e^{3} \left (2 c x +b \right )}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}-\frac {4 c^{2} d^{3} \left (2 c x +b \right )}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+\left (3 b c \,e^{3}-6 c^{2} d \,e^{2}\right ) \left (-\frac {x}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}+\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{c^{\frac {3}{2}}}\right )+\left (2 a c \,e^{3}+e^{3} b^{2}-6 c^{2} d^{2} e \right ) \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c^{2}}\) | \(307\) |
default | \(\frac {2 d^{3} \left (2 c x +b \right )}{\left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}+e^{3} \left (\frac {x^{2}}{c \sqrt {c \,x^{2}+b x +a}}-\frac {3 b \left (-\frac {x}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}+\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{c^{\frac {3}{2}}}\right )}{2 c}-\frac {2 a \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{c}\right )+3 d \,e^{2} \left (-\frac {x}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )}{2 c}+\frac {\ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x +a}\right )}{c^{\frac {3}{2}}}\right )+3 d^{2} e \left (-\frac {1}{c \sqrt {c \,x^{2}+b x +a}}-\frac {b \left (2 c x +b \right )}{c \left (4 a c -b^{2}\right ) \sqrt {c \,x^{2}+b x +a}}\right )\) | \(409\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 376 vs. \(2 (163) = 326\).
Time = 0.43 (sec) , antiderivative size = 755, normalized size of antiderivative = 4.27 \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\left [-\frac {3 \, {\left (2 \, {\left (a b^{2} c - 4 \, a^{2} c^{2}\right )} d e^{2} - {\left (a b^{3} - 4 \, a^{2} b c\right )} e^{3} + {\left (2 \, {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d e^{2} - {\left (b^{3} c - 4 \, a b c^{2}\right )} e^{3}\right )} x^{2} + {\left (2 \, {\left (b^{3} c - 4 \, a b c^{2}\right )} d e^{2} - {\left (b^{4} - 4 \, a b^{2} c\right )} e^{3}\right )} x\right )} \sqrt {c} \log \left (-8 \, c^{2} x^{2} - 8 \, b c x - b^{2} + 4 \, \sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {c} - 4 \, a c\right ) + 4 \, {\left (2 \, b c^{3} d^{3} - 12 \, a c^{3} d^{2} e + 6 \, a b c^{2} d e^{2} - {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} e^{3} x^{2} - {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2}\right )} e^{3} + {\left (4 \, c^{4} d^{3} - 6 \, b c^{3} d^{2} e + 6 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d e^{2} - {\left (3 \, b^{3} c - 10 \, a b c^{2}\right )} e^{3}\right )} x\right )} \sqrt {c x^{2} + b x + a}}{4 \, {\left (a b^{2} c^{3} - 4 \, a^{2} c^{4} + {\left (b^{2} c^{4} - 4 \, a c^{5}\right )} x^{2} + {\left (b^{3} c^{3} - 4 \, a b c^{4}\right )} x\right )}}, -\frac {3 \, {\left (2 \, {\left (a b^{2} c - 4 \, a^{2} c^{2}\right )} d e^{2} - {\left (a b^{3} - 4 \, a^{2} b c\right )} e^{3} + {\left (2 \, {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d e^{2} - {\left (b^{3} c - 4 \, a b c^{2}\right )} e^{3}\right )} x^{2} + {\left (2 \, {\left (b^{3} c - 4 \, a b c^{2}\right )} d e^{2} - {\left (b^{4} - 4 \, a b^{2} c\right )} e^{3}\right )} x\right )} \sqrt {-c} \arctan \left (\frac {\sqrt {c x^{2} + b x + a} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{2} + b c x + a c\right )}}\right ) + 2 \, {\left (2 \, b c^{3} d^{3} - 12 \, a c^{3} d^{2} e + 6 \, a b c^{2} d e^{2} - {\left (b^{2} c^{2} - 4 \, a c^{3}\right )} e^{3} x^{2} - {\left (3 \, a b^{2} c - 8 \, a^{2} c^{2}\right )} e^{3} + {\left (4 \, c^{4} d^{3} - 6 \, b c^{3} d^{2} e + 6 \, {\left (b^{2} c^{2} - 2 \, a c^{3}\right )} d e^{2} - {\left (3 \, b^{3} c - 10 \, a b c^{2}\right )} e^{3}\right )} x\right )} \sqrt {c x^{2} + b x + a}}{2 \, {\left (a b^{2} c^{3} - 4 \, a^{2} c^{4} + {\left (b^{2} c^{4} - 4 \, a c^{5}\right )} x^{2} + {\left (b^{3} c^{3} - 4 \, a b c^{4}\right )} x\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\int \frac {\left (d + e x\right )^{3}}{\left (a + b x + c x^{2}\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 240, normalized size of antiderivative = 1.36 \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\frac {{\left (\frac {{\left (b^{2} c e^{3} - 4 \, a c^{2} e^{3}\right )} x}{b^{2} c^{2} - 4 \, a c^{3}} - \frac {4 \, c^{3} d^{3} - 6 \, b c^{2} d^{2} e + 6 \, b^{2} c d e^{2} - 12 \, a c^{2} d e^{2} - 3 \, b^{3} e^{3} + 10 \, a b c e^{3}}{b^{2} c^{2} - 4 \, a c^{3}}\right )} x - \frac {2 \, b c^{2} d^{3} - 12 \, a c^{2} d^{2} e + 6 \, a b c d e^{2} - 3 \, a b^{2} e^{3} + 8 \, a^{2} c e^{3}}{b^{2} c^{2} - 4 \, a c^{3}}}{\sqrt {c x^{2} + b x + a}} - \frac {3 \, {\left (2 \, c d e^{2} - b e^{3}\right )} \log \left ({\left | 2 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x + a}\right )} \sqrt {c} + b \right |}\right )}{2 \, c^{\frac {5}{2}}} \]
[In]
[Out]
Timed out. \[ \int \frac {(d+e x)^3}{\left (a+b x+c x^2\right )^{3/2}} \, dx=\int \frac {{\left (d+e\,x\right )}^3}{{\left (c\,x^2+b\,x+a\right )}^{3/2}} \,d x \]
[In]
[Out]